class Washer:
    """洗衣机类"""

    def __new__(cls, *args, **kwargs):
        print('Creating instance')
        inst = super().__new__(cls)
        return inst

    def __init__(self, width, height):
        print('Init is called')
        self.width = width
        self.height = height

    def wash(self):
        print('我可以洗衣服')

    def __str__(self):
        return f'洗衣机宽{self.width}m，高{self.height}m'

    def __del__(self):
        print('删除对象')


if __name__ == '__main__':
    haier = Washer(500, 800)
    print(haier)
